package com.aust.dynamicProxy.test3;

import java.lang.reflect.Proxy;

/**
 * 创建代理对象工具类
 */
public class ProxyUtil {
    public static Object createProxy(Object target) {
        return Proxy.newProxyInstance(
                target.getClass().getClassLoader(),
                target.getClass().getInterfaces(),
                new UserHandle(target)
        );
    }
}
